Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRAnglesToCoord

You can use the QTVRAnglesToCoord function to get a floating-point coordinate determined by a pair of pan and tilt angles.

OSErr QTVRAnglesToCoord (
                     QTVRInstance qtvr,
                     floatpanAngle,
                     floattiltAngle,
                     QTVRFloatPoint*coord);
qtvr
An instance of a QuickTime VR movie.
panAngle
A pan angle.
tiltAngle
A tilt angle.
coord
On entry, a pointer to a QTVRFloatPoint structure. On exit, that structure is set to the coordinate of the specified movie that corresponds to the specified pan and tilt angles.
function result
A result code.

DESCRIPTION

The QTVRAnglesToCoord function returns, in the QTVRFloatPoint structure pointed to by the coord parameter, the coordinates of the point in the full panorama of the movie specified by the qtvr parameter that corresponds to the pan and tilt angles specified by the panAngle and tiltAngle parameters.

SPECIAL CONSIDERATIONS

QTVRAnglesToCoord is valid only for panoramic nodes.

SEE ALSO

Use QTVRCoordToAngles (link) to get a pair of pan and tilt angles from a floating-point coordinate.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |